{% extends "base_reporte.html" %}
{% block title %}Historial del Item{% endblock %}
{% block body %}
  <h2>Historial del Item</h2>
  <form>
      <br>
      {% for item in historial_item %}
      <table>
          <tr>
              <td>Identificador</td>
              <td>Nombre</td>
              <td>Descripci&oacute;n</td>
              <td>Observaci&oacute;n</td>
              <td>Versi&oacute;n</td>
              <td>Complejidad</td>
              <td>Costo</td>
              <td>Tipo</td>
          </tr>
          <tr>
              <td class="cc1">{{item.id}}</td>
              <td class="cc2">{{item.nombre}}</td>
              <td class="cc3">{{item.descripcion}}</td>
              <td class="cc4">{{item.observacion}}</td>
              <td class="cc5">{{item.version}}</td>
              <td class="cc6">{{item.complejidad}}</td>
              <td class="cc7">{{item.costo}}</td>
              <td class="cc8">{{item.nombre_tipo}}</td>
          </tr>
      </table>
      <table>
          <TR>
              <TD>Atributo</TD>
              <TD>Valor</TD>
          </TR>
          {% for valor in historial_valores %}
          {% if item.id == valor.id_item %}
          <TR>
            <TD class="c1">{{valor.nombre_atributo}}</TD>
            <TD class="c2">{{valor.valor}}</TD>
          </TR>
          {% endif %}
          {% endfor %}
      </table>
      <hr>
    {% endfor %}
    </form>
{% endblock %}
